package org.huntaway.kernel.mode.factory.abstr;

import org.huntaway.kernel.mode.factory.abstr.model.KetchenFactory;

/**
 * @author jskyme
 * 
 */
public class Client {
	public void eat(KetchenFactory k) {
		System.out.println("A person eat " + k.getFood().getEatable()
				+ " with " + k.getTableWare().getTool() + "!");
	}

	public static void main(String[] args) {
		Client client = new Client();
		KetchenFactory kf = new AKetchen();
		client.eat(kf);
		kf = new BKetchen();
		client.eat(kf);
		kf = new CKetchen();
		client.eat(kf);
	}

}
